/*
 * @Author: lcx 792325586@qq.com
 * @Date: 2023-10-17 21:32:57
 * @LastEditors: lcx
 * @LastEditTime: 2023-10-17 21:50:43
 * @FilePath: \外观模式\facade.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

class SubsystemA {

    void register() {
        System.out.println("SubsystemA register");
    }
}

class SubsystemB {

    void register() {
            System.out.println("SubsystemB register");
    }
}

class SubsystemC {

    void register() {
        System.out.println("SubsystemC register");
    }
}

class SystemEntrance {

    SubsystemA systemA = new SubsystemA();
    SubsystemB systemB = new SubsystemB();
    SubsystemC systemC = new SubsystemC();

    void funcA() {
        systemA.register();
    }

    void funcB() {
        systemB.register();
    }

    void funcC() {
        systemC.register();
    }

}
class test {
    public static void main(String[] args) {

        SystemEntrance systementrance = new SystemEntrance();
        systementrance.funcA();
        systementrance.funcB();
        systementrance.funcC();

    }


}